/* 轮滑 */
window.onload=function(){
 function getid(id){
   return document.getElementById(id);
  }
	
 speed=-1;
 move=getid("title_1");
 getid("text_1").innerHTML=getid("text").innerHTML;
  var time=setInterval(automove,10);
  
  getid("title").onmouseover=function(){
      clearInterval(time);
  }
  getid("title").onmouseout=function(){
    time=setInterval(automove,10);
  }
  
function automove(){
   if(parseInt(move.style.left)<= -getid("text").offsetWidth){
         move.style.left=0+"px";
   }
   if(parseInt(move.style.left)>0){
      move.style.left= -getid("text").offsetWidth+"px";
   }
       move.style.left=move.offsetLeft+speed+'px';
}	

}


	
	




